prim's algorithm example step by step